#include <stdlib.h>
#include <stdio.h>
#include <time.h>

int main(void) {
    int array[10] = {};
    printf("%7s", "");
    for (int m = 0; m < 10; ++m) {
        printf(" %3d", m);
    }
    puts("");
    srand(time(0));
    for (int i = 0; i < 10; ++i) {
        for (int l = 0; l <10; ++l) {
            array[l] = 0;
        }
        for (int j = 0; j < 1000; ++j) {
            array[rand() % 10] += 1;
        }
        printf("seed %d:", i);
        for (int k = 0; k < 10; ++k) {
            printf(" %3d", array[k]);
        }
        puts("");
    }

    return 1;
}